import java.io.File;
import java.io.RandomAccessFile;

public class ReadIndexHeader 
{
	String[] temp2;
	public String[] read(String file) throws Exception
	{
		String str="";
		primaryBuckets.f = new File(file);
		RandomAccessFile fip= new RandomAccessFile(primaryBuckets.f, "rw");
		fip.seek(0);
		int i=0;
		char c;
		int k=0;
		while((c =(char) fip.readByte())!=',')
		{	
			str+=c;
			k++;
		}
		i=Integer.parseInt(str);
		int j=0;
		str="";
		while(j<i)
		{
			str+=(char)fip.readByte();
			j++;
		}
		temp2=str.split(",");
		heap.readpointer=(i+k+1);
		return temp2;	
	}
}
